<html>
    <head>
        <meta charset="utf-8" />
        <title>js调用click</title>
    </head>
    <body>
        <p><a id="alert" onclick="alert('test alert')">alert</a></p>
        <p><a id="prompt" onclick="prompt('test prompt','test default')">prompt</a></p>
        <p><a id="confirm" onclick="confirm('test confirm')">confirm</a></p>
    </body>
</html>